package com.yami.shop.personnft.common.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.personnft.common.dao.PersonShareMapper;
import com.yami.shop.personnft.common.model.PersonShare;
import com.yami.shop.personnft.common.service.PersonShareService;
import com.yami.shop.personnft.common.vo.PersonShareVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonShareServiceImpl extends ServiceImpl<PersonShareMapper, PersonShare> implements PersonShareService {

    @Autowired
    private PersonShareMapper personShareMapper;

    @Override
    public PersonShareVo getDetailByTokenId(String tokenId) {

        return personShareMapper.getDetailByTokenId(tokenId);
    }

    @Override
    public List<Long> getBuyReceiveOutIdList(String userId) {
        return personShareMapper.getBuyReceiveOutIdList(userId);
    }
}
